//
//  CAIBehaviorEnteringLayer.h
//  Monster_Martial_Arts_Version_0
//
//  Created by chiawei.tseng on 13/1/15.
//
//

#ifndef Monster_Martial_Arts_Version_0_CAIBehaviorEnteringLayer_h
#define Monster_Martial_Arts_Version_0_CAIBehaviorEnteringLayer_h

#include "CAIManager.h"
#include "CBaseAI.h"
#include "AIDef.h"
#include "CProcessFunctions.h"
#include "point.h"

class CAIBehaviorEnteringLayer : public CAIBehavior , public CProcessFunctions<CAIBehaviorEnteringLayer>
{
public:
    
    enum
    {
        //INVALID =-1,
        //WAIT =0,
        ENTERING = 0,
    };
    
    enum
    {
        MOVELEN = 1
    };
    
    enum TARGET_COORDINATE
    {
        LEFT_COORDINATE_X  = 60,
        RIGHT_COORDINATE_X = 420,
    };
    
    CAIBehaviorEnteringLayer();
    
    virtual ~CAIBehaviorEnteringLayer();
    
    virtual bool Init(CAIManager*);
    
    virtual void Entering(IStateInput*);
    
    virtual void Update(IStateInput*);
    
    virtual void Leaving(IStateInput*);
    
    virtual int ShouldChange(IStateInput*);
    
protected:
    
    //void onProcessWait();
    
    void onProcessEnteringLayer();
    
    bool isCheckInScene();
    
private:
    
    fPoint     m_targetPoint;
    
    //WAIT_TIME  m_waitTime;
    
    float      m_fNowTime;
    
};


#endif
